package com.ssr.master.modules.impl;

import com.ssr.master.modules.dao.SysMenuDictDao;
import com.ssr.master.modules.entity.SysMenuDict;
import com.ssr.master.modules.service.SysMenuDictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ZhangPeng
 * @Describe //todo
 * @date
 * @updateBy
 * @other
 **/
@Service("SysMenuDictService")
public class SysMenuDictImpl implements SysMenuDictService {

    @Autowired
    private SysMenuDictDao sysMenuDictDao;

    /**
     * @param userId
     * @return java.util.List<com.ssr.master.modules.entity.SysMenuDict>
     * @Description //todo 用户id查询所有菜单
     * @author ZhangPeng
     * @date 2020/7/7 14:57
     * @other
     **/
    public List<SysMenuDict> listAllPower(String userId) {
        List<SysMenuDict> list = sysMenuDictDao.listAllPower(userId);
        return list;
    }

    /**
     * @param
     * @return java.util.List<com.ssr.master.modules.entity.SysMenuDict>
     * @Description //todo 系统初始化加载所有菜单获取权限
     * @author ZhangPeng
     * @date 2020/7/8 17:22
     * @other
     **/
    public List<SysMenuDict> getMenuListInto (){
        List<SysMenuDict> list = sysMenuDictDao.getMenuListInto();
        return list;
    }

    @Override
    public List<SysMenuDict> getParentList(String userId) {
        return sysMenuDictDao.getParentList(userId);
    }

    /**
     * @param id
     * @return com.ssr.master.modules.entity.SysMenuDict
     * @Description //todo 根据登录名查询的parent菜单
     * @author ZhangPeng
     * @date 2020/7/15 14:24
     * @other
    **/
    @Override
    public SysMenuDict get(String id) {
        return null;
    }

    @Override
    public SysMenuDict get(SysMenuDict var1) {
        return null;
    }

    @Override
    public List<SysMenuDict> findList(SysMenuDict var1) {
        return null;
    }

    @Override
    public List<SysMenuDict> findAllList(SysMenuDict var1) {
        return null;
    }

    @Override
    public List<SysMenuDict> findAllList() {
        return null;
    }

    @Override
    public int insert(SysMenuDict var1) {
        return 0;
    }

    @Override
    public int update(SysMenuDict var1) {
        return 0;
    }

    @Override
    public int delete(String var1) {
        return 0;
    }

    @Override
    public int delete(SysMenuDict var1) {
        return 0;
    }
}
